package com.xique.door.command;

import com.xique.common.core.web.domain.AjaxResult;
import com.xique.door.bean.domain.AccessDevice;
import com.xique.door.bean.domain.CardDevice;
import com.xique.door.bean.domain.DCard;
import com.xique.door.bean.domain.User;
import com.xique.door.bean.dto.CardDeviceHouseCodeDTO;

import java.util.List;

/**
 * @author: caogq
 * @Date: 2022/2/26 13:55
 * @Description:
 */
public interface ICardCommandBizService {
    /**
     * @description: 下发卡片
     * @author caogq
     * @date: 2022/2/26 14:01
     * @Param
     */
    AjaxResult downCard(DCard card, List<CardDevice> cardDevices, List<CardDeviceHouseCodeDTO> dtos);

    AjaxResult downCards(List<AccessDevice> accessDevices, List<DCard> cards);

    AjaxResult deleteCard(DCard card,List<CardDevice> cardDevices);

    /**
     * @description: 挂失卡片
     * @author caogq
     * @date: 2022/2/26 16:32
     * @Param
     */
    AjaxResult lossCard(DCard dCard);

    AjaxResult unLossCard(DCard dCard);

    AjaxResult downCards(Long deviceId);
}
